<?php
class MyApplicationController
	extends BaseController
{
	public $o_navi;
	public $s_scripts;
	
	public function start()
	{
		$this->s_scripts = fw_util_getScripts();
		$this->registry->template->s_jsLoadFunction = fw_util_getjsLoadFunction();
		$this->registry->template->s_scripts = $this->s_scripts;
	}
	
	public function showNavi()
	{
		$arr_options = array(
			'pretty_urls'=> false,
			'is_sub_navi'=> false
		);
		//include the applications declaration file
		include C_FW_customPackage.'configs/applications.php';
		$this->o_navi = new ClaycodeNaviMenu($arr_applications, $arr_options);
		$this->registry->template->s_navi = $this->o_navi->getNaviHtml();
	}
}